package com.caiyouxi.restrict.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.common.control.BaseController;
import com.caiyouxi.restrict.model.RestrictedConditions;
import com.caiyouxi.restrict.service.RestrictedConditionService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * Created by  on 2015/8/27.
 * 业务限制条件检查相关control
 */
@RestController
@RequestMapping("/restrict")
public class RestrictController extends BaseController {

    private Logger logger = Logger.getLogger(RestrictController.class);

    @Autowired
    private RestrictedConditionService restrictedConditionService;

    /**
     * 业务限制条件的检查接口
     * @param request
     * @param response
     * @param bean
     * @return
     */
    @RequestMapping("check_restrict")
    public ResData check_restrict(HttpServletRequest request, HttpServletResponse response, @RequestBody RestrictedConditions bean)
    {
        logger.info("业务限制条件的检查接口");
        return success(null);
//        return  restrictedConditionService.check_restrict(bean);

    }




}
